#include "GUI_core.h"


//鍏ㄥ眬LCD缂撳啿鍖�
uint8_t displaybuf1[LCD_GUI_WIDTH*2*LCD_REFRESH_UNIT];
uint8_t displaybuf2[LCD_GUI_WIDTH*2*LCD_REFRESH_UNIT];

void LCD_Draw_Image(uint16_t xstart,uint16_t ystart,uint16_t xend,uint16_t yend,uint32_t address)
{   



  uint16_t  length=0;
  Image_Information_t image;
  uint8_t buf[8]={0};

  qspi_flash_read( address, 8,buf);
  for(int i=0;i<8;i++)
  printf("buf[%d]:",i,buf[i]);
  printf("\r\n");
  printf("\r\n");
  printf("\r\n");
  //memcpy((Image_Information_t *)image, (uint32_t *)address, 8);
  printf("address=%x\r\n",address);



/*
  printf("height=%d,width=%d,address=%x\r\n",image->Height,image->Width,image->Address);

  length=image->Width*image->Height*2;//鏁版嵁闀垮害
  uint8_t buffer[length];             //褰撳墠鍥剧墖涓存椂缂撳啿鍖�
  memcpy(buffer, image->Address, length);
  st7796h_draw(xstart, ystart, xend, yend, buffer);
  */
}


void Clear_LCD_Display_Buf1()
{
    memset(displaybuf1,0,sizeof(displaybuf1));
}
void Clear_LCD_Display_Buf2()
{
    memset(displaybuf2,0,sizeof(displaybuf2));
}



































